package de.chessgame.src;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;

public class ModelRook extends ModelBase
{
  //fields
    ModelRenderer ShapeBottom01;
    ModelRenderer ShapeMidBig;
    ModelRenderer ShapeMidSmall0;
    ModelRenderer ShapeMidSmall1;
    ModelRenderer ShapeMidNeck;
    ModelRenderer ShapeHeadWall0;
    ModelRenderer ShapeHeadWall1;
    ModelRenderer ShapeHeadWall3;
    ModelRenderer ShapeHeadWall2;
    ModelRenderer ShapeBottom1;
    ModelRenderer ShapeBottom00;
    ModelRenderer ShapeMerlon2;
    ModelRenderer ShapeMerlon1;
    ModelRenderer ShapeMerlon3;
    ModelRenderer ShapeMerlon0;
  
  public ModelRook()
  {
    textureWidth = 32;
    textureHeight = 32;
    
      ShapeBottom01 = new ModelRenderer(this, 12, 24);
      ShapeBottom01.addBox(0F, 0F, 0F, 6, 4, 4);
      ShapeBottom01.setRotationPoint(-3F, 20F, -2F);
      ShapeBottom01.setTextureSize(32, 32);
      ShapeBottom01.mirror = true;
      setRotation(ShapeBottom01, 0F, 0F, 0F);
      ShapeMidBig = new ModelRenderer(this, 0, 25);
      ShapeMidBig.addBox(0F, 0F, 0F, 2, 3, 4);
      ShapeMidBig.setRotationPoint(-1F, 16F, -2F);
      ShapeMidBig.setTextureSize(32, 32);
      ShapeMidBig.mirror = true;
      setRotation(ShapeMidBig, 0F, 0F, 0F);
      ShapeMidSmall0 = new ModelRenderer(this, 10, 23);
      ShapeMidSmall0.addBox(0F, 0F, 0F, 1, 3, 2);
      ShapeMidSmall0.setRotationPoint(1F, 16F, -1F);
      ShapeMidSmall0.setTextureSize(32, 32);
      ShapeMidSmall0.mirror = true;
      setRotation(ShapeMidSmall0, 0F, 0F, 0F);
      ShapeMidSmall1 = new ModelRenderer(this, 6, 20);
      ShapeMidSmall1.addBox(0F, 0F, 0F, 1, 3, 2);
      ShapeMidSmall1.setRotationPoint(-2F, 16F, -1F);
      ShapeMidSmall1.setTextureSize(32, 32);
      ShapeMidSmall1.mirror = true;
      setRotation(ShapeMidSmall1, 0F, 0F, 0F);
      ShapeMidNeck = new ModelRenderer(this, 14, 19);
      ShapeMidNeck.addBox(0F, 0F, 0F, 4, 1, 4);
      ShapeMidNeck.setRotationPoint(-2F, 15F, -2F);
      ShapeMidNeck.setTextureSize(32, 32);
      ShapeMidNeck.mirror = true;
      setRotation(ShapeMidNeck, 0F, 0F, 0F);
      ShapeHeadWall0 = new ModelRenderer(this, 22, 13);
      ShapeHeadWall0.addBox(0F, 0F, 0F, 1, 2, 4);
      ShapeHeadWall0.setRotationPoint(2F, 13F, -2F);
      ShapeHeadWall0.setTextureSize(32, 32);
      ShapeHeadWall0.mirror = true;
      setRotation(ShapeHeadWall0, 0F, 0F, 0F);
      ShapeHeadWall1 = new ModelRenderer(this, 12, 16);
      ShapeHeadWall1.addBox(0F, 0F, 0F, 4, 2, 1);
      ShapeHeadWall1.setRotationPoint(-2F, 13F, 2F);
      ShapeHeadWall1.setTextureSize(32, 32);
      ShapeHeadWall1.mirror = true;
      setRotation(ShapeHeadWall1, 0F, 0F, 0F);
      ShapeHeadWall3 = new ModelRenderer(this, 16, 13);
      ShapeHeadWall3.addBox(0F, 0F, 0F, 4, 2, 1);
      ShapeHeadWall3.setRotationPoint(-2F, 13F, -3F);
      ShapeHeadWall3.setTextureSize(32, 32);
      ShapeHeadWall3.mirror = true;
      setRotation(ShapeHeadWall3, 0F, 0F, 0F);
      ShapeHeadWall2 = new ModelRenderer(this, 22, 7);
      ShapeHeadWall2.addBox(0F, 0F, 0F, 1, 2, 4);
      ShapeHeadWall2.setRotationPoint(-3F, 13F, -2F);
      ShapeHeadWall2.setTextureSize(32, 32);
      ShapeHeadWall2.mirror = true;
      setRotation(ShapeHeadWall2, 0F, 0F, 0F);
      ShapeBottom1 = new ModelRenderer(this, 0, 11);
      ShapeBottom1.addBox(0F, 0F, 0F, 4, 1, 4);
      ShapeBottom1.setRotationPoint(-2F, 19F, -2F);
      ShapeBottom1.setTextureSize(32, 32);
      ShapeBottom1.mirror = true;
      setRotation(ShapeBottom1, 0F, 0F, 0F);
      ShapeBottom00 = new ModelRenderer(this, 0, 0);
      ShapeBottom00.addBox(0F, 0F, 0F, 4, 4, 6);
      ShapeBottom00.setRotationPoint(-2F, 20F, -3F);
      ShapeBottom00.setTextureSize(32, 32);
      ShapeBottom00.mirror = true;
      setRotation(ShapeBottom00, 0F, 0F, 0F);
      ShapeMerlon2 = new ModelRenderer(this, 26, 0);
      ShapeMerlon2.addBox(0F, 0F, 0F, 1, 1, 2);
      ShapeMerlon2.setRotationPoint(-3F, 12F, -1F);
      ShapeMerlon2.setTextureSize(32, 32);
      ShapeMerlon2.mirror = true;
      setRotation(ShapeMerlon2, 0F, 0F, 0F);
      ShapeMerlon1 = new ModelRenderer(this, 22, 0);
      ShapeMerlon1.addBox(0F, 0F, 0F, 2, 1, 1);
      ShapeMerlon1.setRotationPoint(-1F, 12F, -3F);
      ShapeMerlon1.setTextureSize(32, 32);
      ShapeMerlon1.mirror = true;
      setRotation(ShapeMerlon1, 0F, 0F, 0F);
      ShapeMerlon3 = new ModelRenderer(this, 22, 3);
      ShapeMerlon3.addBox(0F, 0F, 0F, 2, 1, 1);
      ShapeMerlon3.setRotationPoint(-1F, 12F, 2F);
      ShapeMerlon3.setTextureSize(32, 32);
      ShapeMerlon3.mirror = true;
      setRotation(ShapeMerlon3, 0F, 0F, 0F);
      ShapeMerlon0 = new ModelRenderer(this, 26, 3);
      ShapeMerlon0.addBox(0F, 0F, 0F, 1, 1, 2);
      ShapeMerlon0.setRotationPoint(2F, 12F, -1F);
      ShapeMerlon0.setTextureSize(32, 32);
      ShapeMerlon0.mirror = true;
      setRotation(ShapeMerlon0, 0F, 0F, 0F);
  }
  
  public void render(float f5)
  {
    ShapeBottom01.render(f5);
    ShapeMidBig.render(f5);
    ShapeMidSmall0.render(f5);
    ShapeMidSmall1.render(f5);
    ShapeMidNeck.render(f5);
    ShapeHeadWall0.render(f5);
    ShapeHeadWall1.render(f5);
    ShapeHeadWall3.render(f5);
    ShapeHeadWall2.render(f5);
    ShapeBottom1.render(f5);
    ShapeBottom00.render(f5);
    ShapeMerlon2.render(f5);
    ShapeMerlon1.render(f5);
    ShapeMerlon3.render(f5);
    ShapeMerlon0.render(f5);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
}
